{extend name="public/base"/}
 {block name="content"}
  <section class="content">
            <div class="col-md-9" style="width:100%">
              <div class="box box-default">
                <div class="box-header with-border">
                 	<h3 class="box-title">
				<a href="{:U('User/auth_add')}" class="btn btn-primary">添加权限</a>
				</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
                  </div>
                </div>
				<!-- /.box-header -->
                <!-- form start -->
                  <form action="{:U('Auth/auth_add')}" method="post">
                <div class="box-body">
                  <div class="row">
                    <div class="col-md-12">
                      <table class="table table-bordered">
                        <tr>
                            <th width="140">英文名称:</th>
                            <td><input class="form-control" type="text" name="name" value="" size="30"></td>
                        </tr>           
						<tr>
                            <th width="140">中文名称:</th>
                            <td><input class="form-control" type="text" name="title" value="" size="30"></td>
                        </tr>
						
						<tr>
                            <th width="140">是否启用:</th>
                            <td>
							否:
							<input type="radio" name="status" value="0" />
							是:
							<input type="radio" name="status" value="1" />
							</td>
                        </tr>
						
						<tr>
                            <th width="140">父节点:</th>
                            <td>
							<select name="pid">
							<option value="">选择父节点</option>
				            {volist name="node" id="data"}
							
							{if condition="$data.level eq 1"}
							<option value="{$data.id}">{$data.title}</option>
                            {else /}
							<option value="{$data.id}"> &nbsp;&nbsp;|{$data.title}</option>
							{/if}
                            {/volist}
							</select>
							
							</td>
                        </tr>
						
						<tr>
                            <th width="140">类型:</th>
                            <td>
							<select name="level">
							<option value="0">选择类型</option>
							<option value="1">模块</option>
							<option value="2">&nbsp;&nbsp;|控制器</option>
							<option value="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|方法</option>
							</select>
							</td>
                        </tr>
						
                      </table>
                    </div>
                  </div>
                </div>
                <div class="box-footer">
                  <button type="submit" class="btn btn-primary">确认</button>
                </div>
                </form>
              </div><!-- /.box -->
            </div>
			<!-- /.col -->
			</section>
 {/block}